package com.zhiyou100.entity;


import java.io.Serializable;
import java.util.Date;


/**
 * @author yang
 */
public class Topic implements Serializable {

  private Integer tid;
  private String thead;
  private String tcontent;
  private Date ttime;
  private Integer uid;
  private Integer tattention;

  public Integer getTid() {
    return tid;
  }

  public void setTid(Integer tid) {
    this.tid = tid;
  }

  public String getThead() {
    return thead;
  }

  public void setThead(String thead) {
    this.thead = thead;
  }

  public String getTcontent() {
    return tcontent;
  }

  public void setTcontent(String tcontent) {
    this.tcontent = tcontent;
  }

  public Date getTtime() {
    return ttime;
  }

  public void setTtime(Date ttime) {
    this.ttime = ttime;
  }

  public Integer getUid() {
    return uid;
  }

  public void setUid(Integer uid) {
    this.uid = uid;
  }

  public Integer getTattention() {
    return tattention;
  }

  public void setTattention(Integer tattention) {
    this.tattention = tattention;
  }

  @Override
  public String toString() {
    return "Topic{" +
            "tid=" + tid +
            ", thead='" + thead + '\'' +
            ", tcontent='" + tcontent + '\'' +
            ", ttime=" + ttime +
            ", uid=" + uid +
            ", tattention=" + tattention +
            '}';
  }

  public Topic(Integer tid, String thead, String tcontent, Date ttime, Integer uid, Integer tattention) {
    this.tid = tid;
    this.thead = thead;
    this.tcontent = tcontent;
    this.ttime = ttime;
    this.uid = uid;
    this.tattention = tattention;
  }

  public Topic() {
  }
}
